package pe.edu.upc.dsd.epica.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.xml.soap.SOAPException;

import pe.edu.upc.dsd.epica.model.Usuario;

@Path("/usuario")
@WebService
public interface UsuarioService {
  
	@GET
	@Path("/loginTipo/{login}/{tipo}")
	@Consumes("application/json")
	@Produces("application/json")
	@WebMethod()
    public Usuario findByLoginTipo(@PathParam("login")@WebParam(name="login")String login,
    		@PathParam("tipo")@WebParam(name="tipo")String tipo) throws SOAPException;
    
	@WebMethod()
	public Usuario find(@WebParam(name="userCodigo")String codigo) throws SOAPException;
	
	@WebMethod()
	public void delete(@WebParam(name="userCodigo")String codigo) throws SOAPException;
	
	@WebMethod()
	public Usuario findByUsuarioCode(@WebParam(name="userCodigo")String codigo) throws SOAPException;
	
}
